package main

import (
	"context"
	"time"
)

func main() {

	ctx, cancelFunc := context.WithCancel(context.Background())

	time.Sleep(time.Second * 3)
	cancelFunc()
	time.Sleep(time.Minute)

}
